package com.oj.service.impl;

import com.oj.entity.Problem;
import com.oj.mapper.ProblemMapper;
import com.oj.service.ProblemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class ProblemServiceImpl implements ProblemService {



    @Autowired
    private ProblemMapper problemMapper;

    @Override
    public List<Problem> selectAll() {
        return problemMapper.selectAll();
    }

    @Override
    public Problem selectProblemById(Integer id) {
        return problemMapper.selectProblemById(id);
    }

    @Override
    public void deleteProblemById(Integer id) {
        problemMapper.deleteProblemById();
    }


}
